.el-select{
  .el-input{
    .el-input__inner{
      height: $inputH;
      line-height: $inputH ;
      &:hover,
      &:focus{
        border-color: $mainColor;
      }
    
      &::-webkit-input-placeholder { /* WebKit browsers */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
    }
    .el-input__icon{
      line-height: $inputH;
    }
  }
 
}

// 表格样式重置
#app .el-table{
  &::before{background-color:transparent;}
  .el-table_body-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 10px;
  }
  //滚动条的滑块
  .el-table_body-wrapper::-webkit-scrollbar-thumb {
    background-color: #CCCCCC;
    border-radius: 6px;
  }
  .el-table_body-wrapper::-webkit-scrollbar-track{
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
  }
  .el-table__fixed,.el-table__fixed-right{
    border-bottom: 10px solid transparent;
    height: 100% !important;
    z-index: 10;
  }
  .el-table__fixed::before, 
  .el-table__fixed-right::before{
    background-color: transparent;
  }
  .el-table__fixed-right-patch{
    border: none;
  }
  .unchecked td{
    color: #CCCCCC ;
  }
  tr{
    &.selectRow,
    &:hover{
      td{
        background-color: rgba(222,224,219, 0.04);  
        color: $mainColor;
      }
    }
  }
  .el-table__body tr.hover-row>td{
    background-color: #FAFAFA;  
  }
  th{
    color: $dialogTitle;
    text-align: center;
  }
  td{
    text-align: center;
    font-size: 14px;
    color: $normalColor;
  }
  td.is-left, th.is-left{
    text-align: left;
  }
  th{
    background-color: #f9f9f9;
    border-bottom: none !important;
    padding: 0px 16px;
    height: 48px;
    line-height: 48px;
    .cell{
      padding: 0;
    }
  }
  td{
    height: 40px;
    padding: 16px;    
    .cell{
      padding: 0;
    }
  }
  th.el-table-column--selection,
  td.el-table-column--selection,
  td.options,
  th.options {
    padding: 0;
  
  }

  // 操作栏
  .options{
    font-size: 14px;
    .iconfont{
      font-size: 14px;
      cursor: pointer;
      color: #191919;
      &:hover{
        color: $mainColor;
      }
      &.icon-delete_normal{
        color: #EF5350;
        &:hover{
          color: #C74242;
        }
      }
    }
  }

  // 切换状态按钮
  .el-switch.is-checked .el-switch__core{
    border-color: $mainColor;
    background-color:  $mainColor;
  }
  .el-switch .el-switch__core{
    border-color: #CCCCCC;
    background-color:  #CCCCCC;
    height: 16px;
    line-height: 16px;
    width: 32px !important;
  }
  .el-switch__core:after{
    height: 12px;
    width: 12px;
  
  }

  .el-switch.is-checked .el-switch__core::after{
    margin-left: -13px;
  }
  // 多选按钮
  .el-checkbox{
    .el-checkbox__inner{
      border-color: #CCCCCC;
    }
    .el-checkbox__input:not(.is-disabled){
      .el-checkbox__inner{
        &:hover{
          border-color: $mainColor;
        } 
      }
      &.is-checked{
        .el-checkbox__inner{
          background-color: $mainColor;
          border-color: $mainColor;
        }
      }
      &.is-focus{
        .el-checkbox__inner{
          border-color: $mainColor;
        }
      }
      &.is-indeterminate{
        .el-checkbox__inner{
          background-color: $mainColor;
          border-color: $mainColor;
        }
      }
    }
  }
}
// 
.el-pagination{
  width: 100%;
  text-align: right;
  padding-top: 24px;
  .el-pager {
    li {
      &.active{
        color: $mainColor;
      }
      &:hover{
        color: $mainColor;
      }
    }
  }
  &.is-background {
    .el-pager li{
      color: #CDCDCD;
      background-color: #ffffff;
      border: 1px solid #CDCDCD;
      width: 32px;
      height: 32px;
      padding: 0px;
      line-height: 32px;
      font-weight: normal;
      &:hover{
        color: #ffffff;
        background-color:$mainColor;
        font-weight: normal;
        border-color: $mainColor;
      }
    
    }
    .btn-next, 
    .btn-prev {
      color: #CDCDCD;
      background-color: #ffffff;
      border: 1px solid #CDCDCD;
      width: 32px;
      height: 32px;
      padding: 0px;
      line-height: 32px;
      font-weight: normal;
      &:hover{
        color: $mainColor;
        background-color:rgba(222,224,219, 0.2);
        font-weight: normal;
        border-color: $mainColor;
      }
    }
    .btn-next:disabled, 
    .btn-prev:disabled{
      color: #d5d5d5;
      background-color:#FAFAFA;
      border-color: #d5d5d5;
      &:hover{
        color: #d5d5d5;
        background-color:#FAFAFA;
        border-color: #d5d5d5;
      }
    }
    .el-pager {
      li:not(.disabled){
        &:hover{
          color: $mainColor;
          background-color:rgba(222,224,219, 0.2);
          font-weight: normal;
          border-color: $mainColor;
        }
        &.active{
          color: #ffffff;
          background-color:$mainColor;
          font-weight: normal;
          border-color: $mainColor;
        }
      }
     
    }
  }


}
.el-pagination__sizes .el-input .el-input__inner{
  line-height: 30px;
}
.el-pagination__sizes .el-input .el-input__inner:hover,
.el-pagination__sizes .el-input .el-input__inner:focus,
.el-select .el-input.is-focus .el-input__inner,
.el-select .el-input.is-focus .el-input__inner:hover,
.el-input__inner:focus{
  border-color: $mainColor;
}
.el-select .el-input.is-disabled .el-input__inner,
.el-select .el-input.is-disabled .el-input__inner:hover{
  background-color: #f9f9f9;
}
.el-select-dropdown__item.selected{
  color: $mainColor;
}

.el-pagination__editor,
.el-pagination button,
.el-pagination span:not([class*=suffix]){
  height: 32px;
  line-height: 32px;
}
// 首页表格的按钮
.btnContainer{
  display: flex;
  justify-content: space-between;
  align-content: center;
  margin: 24px 0;
  .el-button{
    margin-top: 0;
    margin-bottom: 0;
  }
}
// 首页 搜索表单
.indexTable{
  .el-form{
    .el-select{
      width: 200px;
      margin-right: 34px;
    }
  }
}

// 弹框
.el-dialog__wrapper{
  display: flex;
  align-items: center;
  justify-content: center;

  >.el-dialog{
    border-radius: 16px;
    margin: 0 !important;
    .el-select{
      width: 100%;
    }
  
    .el-dialog__header{
      border-bottom: 1px solid #EBEAEA;
      height: 54px;
      color: #303030;
      font-size: 14px;
      padding: 16px 24px;
      .el-dialog__title{
        font-size: 14px;
        color: #303030;
      }
      .el-dialog__headerbtn{
        color: #CCCCCC;
        &:hover{
          color: #303030;
          .el-dialog__close{
            color: #303030;
          }
        }
      }
    }
    .el-dialog__footer{
      text-align: center;
      border-top: 1px solid #EBEAEA;
      height: 64px;
      line-height: 64px;
      padding: 0;
      .el-button--default{
        margin-left: 32px;
      }
    }
    .el-dialog__body{
      padding: 24px;
      height: calc(100% - 120px);
      // .el-form{
      //   // padding-right: 75px;
      //   .el-form-item__label::before{
      //     display: none;
      //   }
      // }
    }
  }
}


.el-form{
  .el-form-item__content,.el-form-item__label{
    height: $inputH;
    line-height: $inputH ;
  }
  .el-form-item__label{
    width: 120px;
    color:#666666;
  }
  .el-form-item__content{
    display: inline-block;
    width: calc(100% - 136px);
  }
  .el-input{
    .el-input__inner{
      height: $inputH ;
      line-height: $inputH ;
      // border-color: $color_white;
      color: $dialogTitle;
      &:focus{
        border-color: $mainColor;
        color:  $dialogTitle;
      }
      &::placeholder{
        color: $color_white;
      }
    }
    .el-input__icon{
      line-height: $inputH;
    }
  }
  .el-select{
    
    &:hover{
      .el-input__inner{
        border-color: $mainColor;
      }
    }
  }
}

.el-radio{
    color: $normalColor;
  .el-radio__input.is-checked{
    &+.el-radio__label{
      color: $normalColor;
    }
    .el-radio__inner{
      border-color: $mainColor;
      background: $mainColor;
    }
  }
  .el-radio__input:not(.is-disabled) {
    .el-radio__inner{
      &:hover{
        border-color: $mainColor;
      }
    }
  }
  
}

.el-select-dropdown__item.hover, 
.el-select-dropdown__item:hover{
  background-color: rgba(222,224,219, 0.2);
}



 .el-form-item.is-success .el-textarea__inner{
  border-color: #CCCCCC;
 }
 .el-form-item.is-success .el-textarea__inner:focus{
  border-color: $mainColor;
}


.el-date-table td.disabled div{
  background-color: #f9f9f9;
}

  .el-input{
    .el-input__inner{
      border-color: #d5d5d5 ;
      &:focus{
        border-color: $mainColor;
      }
      &::-webkit-input-placeholder { /* WebKit browsers */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
    }
  }
  .el-color-picker__trigger,
  .el-input__inner{
    border-color: #d5d5d5 ;
    &:focus{
      border-color: $mainColor;
    }
  }

  .el-textarea{
    .el-textarea__inner{
      min-height: 32px !important;
      // padding: 12px 16px;
      overflow: hidden;
      border-color: $color_white;
      color: $dialogTitle;
      &:focus,
      &:hover{
        border-color:$mainColor;
      }
      &::-webkit-input-placeholder { /* WebKit browsers */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }
      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-family:  "Noto Sans SC";
        font-weight: 300;
        color: $color_white;
      }

    }
  }